package org.example.text05;

/**
 * 按小时拿工资的员工
 */

public class HourlyEmployee extends Employee{
    private int hours;// 每个月工作的小时数  >160  *1.5
    private double hourlySalary;// 每小时的工资

    public HourlyEmployee() {
    }

    public HourlyEmployee(String name, int month, int hours, double hourlySalary) {
        super(name, month);
        this.hours = hours;
        this.hourlySalary = hourlySalary;
    }

    public int getHours() {
        return hours;
    }

    public void setHours(int hours) {
        this.hours = hours;
    }

    public double getHourlySalary() {
        return hourlySalary;
    }

    public void setHourlySalary(double hourlySalary) {
        this.hourlySalary = hourlySalary;
    }
}
